package wang.reflect;

public class AcquireClass {
    public static void main(String[] args) throws ClassNotFoundException {
//        Class aClass1 = Class.forName("D:\\java\\Basics\\src\\wang\\reflect\\Student.class");
        Class aClass1 = Class.forName("wang.reflect.Student");
        Class aClass3 = Student.class;
//Throwable Error RuntimeException Ex
        Student s=new Student();
        Class aClass2 = s.getClass();
        System.out.println(aClass1==aClass2);
        System.out.println(aClass3==aClass1);
    }
}
